let gulp = require('gulp');
const del = require('del');
const webpack = require('webpack');
const webpackConfig = require('./webpack.config');


gulp.task('clear', function(cb) {
    del('./dist/**', cb);
});

gulp.task('webpack', function(callback) {
    webpack(webpackConfig, function(err, stats) {
        callback();
    });
});

gulp.task('build', ['clear', 'webpack']);
